package com.sanmubird.mywebframework.indicator.domain.model;

/**
 * @author sam
 */

public enum IndicatorValueType {
    /**
     *
     */
    SINGLE("SINGLE", "单值"),
    MULTIPLE("MULTIPLE", "MULTIPLE");
    private final String type;
    private final String label;

    IndicatorValueType(String type, String label) {
        this.type = type;
        this.label = label;
    }

    public String getType() {
        return type;
    }

    public String getLabel() {
        return label;
    }

    public static IndicatorValueType from(String type) {
        for (IndicatorValueType e : values()) {
            if (e.type.equals(type)) {
                return e;
            }
        }
        return null;
    }
}
